package builder.source;

/**
 * @author Chen Guang
 * @date 2019/4/9 0009 下午 13:53
 */
public class ConcreteBuilderB extends AbstractBuilder{

    private Product product = new Product();

    @Override
    public void buildPartA() {
        product.add("部件X");
    }

    @Override
    public void buildPartB() {
        product.add("部件Y");
    }

    @Override
    public Product getResult() {
        return product;
    }
}
